<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        arr1=["America","Greece","Britain","Canada","China","Egypt"];
        let count =0;
        for(let i in arr1){
            if(arr1[i].indexOf("a")!=-1 ||arr1[i].indexOf("A")!=-1){
                count++
            }
        }
        console.log(count);
        
    </script>
</head>
<body>
    
</body>
</html>